package client.gui_mui;

public class Mapctrl{

// Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the GNU General Public License as published by
//   the Free Software Foundation; either version 2, or (at your option)
//   any later version.
//
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//***********************************************************************/
//
//#ifdef HAVE_CONFIG_H
//#include <config.h>
//#endif
//
//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//
//#include <libraries/mui.h>
//
//#include <clib/alib_protos.h>
//#include <proto/exec.h>
//#include <proto/muimaster.h>
//
//#include "capability.h"
//#include "fcintl.h"
//#include "Game.game.h"
//#include "map.h"
//#include "player.h"
//#include "support.h"
//#include "unit.h"
//
//#include "civclient.h"
//#include "clinet.h"
//#include "colors.h"
//#include "control.h"
//#include "dialogs.h"
//#include "goto.h"
//#include "gui_main.h"
//#include "inputdlg.h"
//#include "mapview.h"
//
//#include "mapctrl.h"
//
///* Amiga client stuff */
//
//#include "muistuff.h"
//#include "mapclass.h"
//
///****************************************************************
//...
//*****************************************************************/
//static void newcity_city_hook(input_dialog_data data)
//{
//  unit punit = (unit ) data.data;
//
//  if(punit)
//  {
//    struct packet_unit_request packet;
//
//    packet.unit_id = punit.id;
//    packet.name = String.format( input_dialog_get_input(data.name));
//    send_packet_unit_request(&aconnection, &packet, PACKET_UNIT_BUILD_CITY);
//  }
//
//  input_dialog_destroy(data.wnd);
//}
//
///**************************************************************************
// Popup dialog where the user choose the name of the new city
// punit = (settler) unit which builds the city
// suggestname = suggetion of the new city's name
//**************************************************************************/
//void popup_newcity_dialog(unit punit, char *suggestname)
//{
//  input_dialog_create(app,
//    "What should we call our new city?", "City_name", suggestname,
//    (void*)newcity_city_hook, punit,
//    (void*)newcity_city_hook, 0);
//}
//
///**************************************************************************
// Activate or deactivate the turn done button.
// Should probably some where else.
//**************************************************************************/
//void set_turn_done_button_state(boolean state)
//{
//  set(main_turndone_button, MUIA_Disabled, !state);
//}
//
///**************************************************************************
// Callback if the user clicks on the map
//**************************************************************************/
//int main_map_click(Map_Click *click)
//{
//  int xtile = (*click).x;
//  int ytile = (*click).y;
//
//  do_map_click(xtile, ytile);
//  return 0;
//}
//
///**************************************************************************
//...
//**************************************************************************/
//void create_line_at_mouse_pos()
//{
//  update_line(xget(main_map_area,MUIA_Map_MouseX),xget(main_map_area,MUIA_Map_MouseY));
//}
//
///**************************************************************************
// The Area Selection rectangle. Called by center_tile_mapcanvas() and
// when the mouse pointer moves.
//**************************************************************************/
//void update_rect_at_mouse_pos()
//{
//  /* PORTME */
//}
}